package com.dongnao.jack.invocate;

import java.lang.reflect.Method;

import com.dongnao.jack.loadbalance.NodeRegisterInfo;
import com.dongnao.jack.spring.parse.ReferenceConfig;

/**
 * 
 * @ClassName: RegistryInvocation 
 * @Description: 封装执行服务端对象方法的具体执行参数
 * @author xuyp
 * @date 2018年4月19日 上午10:13:42 
 *
 */
public class RegistryInvocation {

    private Method method;

    private Object[] args;

    private ReferenceConfig reference;

    private NodeRegisterInfo registerInfo;

    public NodeRegisterInfo getRegisterInfo() {
        return registerInfo;
    }

    public void setRegisterInfo(NodeRegisterInfo registerInfo) {
        this.registerInfo = registerInfo;
    }

    public ReferenceConfig getReference() {
        return reference;
    }

    public void setReference(ReferenceConfig reference) {
        this.reference = reference;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public Object[] getArgs() {
        return args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }

    public RegistryInvocation(Method method, Object[] args, ReferenceConfig reference, NodeRegisterInfo registerInfo) {
        super();
        this.method = method;
        this.args = args;
        this.reference = reference;
        this.registerInfo = registerInfo;
    }

}
